package com.bwie.redis;

import org.springframework.stereotype.Component;
import redis.clients.jedis.JedisPubSub;

@Component
public class RedisKeyExpirationListener extends JedisPubSub {

    @Override
    public void onMessage(String channel, String message) {
        System.out.println("监听到key过期事件：" + channel + "--" + message);
    }
}
